package com.joven.shelltest.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: wzj
 * @Date: 2024/5/29 15:06
 */
@Getter
@AllArgsConstructor
public enum ServiceExceptionEnum {
    /**
     * 返回code值
     */
    SUCCESS(0, "成功"),
    SYS_ERROR(2001001000, "服务端发生异常"),
    MISSING_REQUEST_PARAM_ERROR(2001001001, "参数缺失"),
    INVALID_REQUEST_PARAM_ERROR(2001001002, "请求参数不合法"),
    USER_NOT_FOUND(1001002000, "用户不存在"),
    ;

    /**
     * 错误码
     */
    private final int code;
    /**
     * 错误提示
     */
    private final String message;

}
